﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Sports_carMIS.Models
{
    /// <summary>
    /// 跑车业务模型类
    /// </summary>
    public class Sports_car
    {
        public Guid Id { get; set; }//这个ID作为主键
        public string Name { get; set; }
        public string Model { get; set; }
        public string Brand { get; set; }
        public decimal Price { get; set; }
        public string Colour { get; set; }
        public string Place { get; set; }
        public string Url { get; set; }
        public Sports_car()
        {
            this.Id = Guid.NewGuid();
            this.Price = 0.00M;
        }
        public Sports_car(Sports_car model)
        {
            this.Id = model.Id;
            this.Name = model.Name;
            this.Model = model.Model;
            this.Brand = model.Brand;
            this.Price = model.Price;
            this.Colour = model.Colour;
            this.Place = model.Place;
            this.Url = model.Url;
        }
    }
}
